import static org.junit.Assert.*;

import org.junit.Test;


public class YearTest {
	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 1
	 * Purpose: test consistency
	 * Priority: 3
	 */
	@Test public void getYearTest1() {
	    Year year = new Year(1);
	    assertEquals(1, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 2
	 * Purpose: test consistency
	 * Priority: 3
	 */
	@Test public void getYearTest2() {
	    Year year = new Year(33);
	    assertEquals(33, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 3
	 * Purpose: test consistency
	 * Priority: 3
	 */
	@Test public void getYearTest3() {
	    Year year = new Year(444);
	    assertEquals(444, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 4
	 * Purpose: test consistency
	 * Priority: 3
	 */
	@Test public void getYearTest4() {
	    Year year = new Year(1989);
	    assertEquals(1989, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 5
	 * Purpose: test consistency
	 * Priority: 3
	 */
	@Test public void getYearTest5() {
	    Year year = new Year(1949);
	    assertEquals(1949, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 6
	 * Purpose: test consistency
	 * Priority: 3
	 */
	@Test public void getYearTest6() {
	    Year year = new Year(2000);
	    assertEquals(2000, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 7
	 * Purpose: test consistency
	 * Priority: 3
	 */
	@Test public void getYearTest7() {
	    Year year = new Year(2012);
	    assertEquals(2012, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 8
	 * Purpose: test consistency
	 * Priority: 3
	 */
	@Test public void getYearTest8() {
	    Year year = new Year(3456);
	    assertEquals(3456, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 9
	 * Purpose: test consistency
	 * Priority: 3
	 */
	@Test public void getYearTest9() {
	    Year year = new Year(9999);
	    assertEquals(9999, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 10
	 * Purpose: test normal condition
	 * Priority: 2
	 */
	@Test public void incrementTest1() {
	    Year year = new Year(0);
	    boolean result = year.increment();
	    assertTrue(result);
	    assertEquals(1, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 11
	 * Purpose: test normal condition
	 * Priority: 2
	 */
	@Test public void incrementTest2() {
	    Year year = new Year(33);
	    boolean result = year.increment();
	    assertTrue(result);
	    assertEquals(34, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 12
	 * Purpose: test normal condition
	 * Priority: 2
	 */
	@Test public void incrementTest3() {
	    Year year = new Year(444);
	    boolean result = year.increment();
	    assertTrue(result);
	    assertEquals(445, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 13
	 * Purpose: test normal condition
	 * Priority: 2
	 */
	@Test public void incrementTest4() {
	    Year year = new Year(1989);
	    boolean result = year.increment();
	    assertTrue(result);
	    assertEquals(1990, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 14
	 * Purpose: test normal condition
	 * Priority: 2
	 */
	@Test public void incrementTest5() {
	    Year year = new Year(1949);
	    boolean result = year.increment();
	    assertTrue(result);
	    assertEquals(1950, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 15
	 * Purpose: test normal condition
	 * Priority: 2
	 */
	@Test public void incrementTest6() {
	    Year year = new Year(2000);
	    boolean result = year.increment();
	    assertTrue(result);
	    assertEquals(2001, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 16
	 * Purpose: test normal condition
	 * Priority: 2
	 */
	@Test public void incrementTest7() {
	    Year year = new Year(2012);
	    boolean result = year.increment();
	    assertTrue(result);
	    assertEquals(2013, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 17
	 * Purpose: test normal condition
	 * Priority: 2
	 */
	@Test public void incrementTest8() {
	    Year year = new Year(3456);
	    boolean result = year.increment();
	    assertTrue(result);
	    assertEquals(3457, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 18
	 * Purpose: test normal condition
	 * Priority: 2
	 */
	@Test public void incrementTest9() {
	    Year year = new Year(9999);
	    boolean result = year.increment();
	    assertTrue(result);
	    assertEquals(10000, year.getYear());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 19
	 * Purpose: test non-leap year
	 * Priority: 2
	 */
	@Test public void isLeapTest1() {
	    Year year = new Year(1);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 20
	 * Purpose: test non-leap year
	 * Priority: 2
	 */
	@Test public void isLeapTest2() {
	    Year year = new Year(101);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 21
	 * Purpose: test non-leap year
	 * Priority: 2
	 */
	@Test public void isLeapTest3() {
	    Year year = new Year(345);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 22
	 * Purpose: test non-leap year
	 * Priority: 2
	 */
	@Test public void isLeapTest4() {
	    Year year = new Year(686);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 23
	 * Purpose: test non-leap year
	 * Priority: 2
	 */
	@Test public void isLeapTest5() {
	    Year year = new Year(1889);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 24
	 * Purpose: test non-leap year
	 * Priority: 2
	 */
	@Test public void isLeapTest6() {
	    Year year = new Year(1949);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 25
	 * Purpose: test non-leap year
	 * Priority: 2
	 */
	@Test public void isLeapTest7() {
	    Year year = new Year(1994);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 26
	 * Purpose: test non-leap year
	 * Priority: 2
	 */
	@Test public void isLeapTest8() {
	    Year year = new Year(2006);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 27
	 * Purpose: test non-leap year
	 * Priority: 2
	 */
	@Test public void isLeapTest9() {
	    Year year = new Year(3886);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 28
	 * Purpose: test non-leap year
	 * Priority: 2
	 */
	@Test public void isLeapTest10() {
	    Year year = new Year(9998);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 29
	 * Purpose: test non-leap year - century start
	 * Priority: 1
	 */
	@Test public void isLeapTest11() {
	    Year year = new Year(100);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 30
	 * Purpose: test non-leap year - century start
	 * Priority: 1
	 */
	@Test public void isLeapTest12() {
	    Year year = new Year(200);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 31
	 * Purpose: test non-leap year - century start
	 * Priority: 1
	 */
	@Test public void isLeapTest13() {
	    Year year = new Year(300);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 32
	 * Purpose: test non-leap year - century start
	 * Priority: 1
	 */
	@Test public void isLeapTest14() {
	    Year year = new Year(1900);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 33
	 * Purpose: test non-leap year - century start
	 * Priority: 1
	 */
	@Test public void isLeapTest15() {
	    Year year = new Year(2200);
	    assertFalse(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 34
	 * Purpose: test leap year - normal year
	 * Priority: 1
	 */
	@Test public void isLeapTest16() {
	    Year year = new Year(4);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 35
	 * Purpose: test leap year - normal year
	 * Priority: 1
	 */
	@Test public void isLeapTest17() {
	    Year year = new Year(444);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 36
	 * Purpose: test leap year - normal year
	 * Priority: 1
	 */
	@Test public void isLeapTest18() {
	    Year year = new Year(1552);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 37
	 * Purpose: test leap year - normal year
	 * Priority: 1
	 */
	@Test public void isLeapTest19() {
	    Year year = new Year(1764);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 38
	 * Purpose: test leap year - normal year
	 * Priority: 1
	 */
	@Test public void isLeapTest20() {
	    Year year = new Year(1832);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 39
	 * Purpose: test leap year - normal year
	 * Priority: 1
	 */
	@Test public void isLeapTest21() {
	    Year year = new Year(1984);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 40
	 * Purpose: test leap year - normal year
	 * Priority: 1
	 */
	@Test public void isLeapTest22() {
	    Year year = new Year(2008);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 41
	 * Purpose: test leap year - normal year
	 * Priority: 1
	 */
	@Test public void isLeapTest23() {
	    Year year = new Year(2012);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 42
	 * Purpose: test leap year - normal year
	 * Priority: 1
	 */
	@Test public void isLeapTest24() {
	    Year year = new Year(3996);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 43
	 * Purpose: test leap year - century start
	 * Priority: 1
	 */
	@Test public void isLeapTest25() {
	    Year year = new Year(400);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 44
	 * Purpose: test leap year - century start
	 * Priority: 1
	 */
	@Test public void isLeapTest26() {
	    Year year = new Year(800);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 45
	 * Purpose: test leap year - century start
	 * Priority: 1
	 */
	@Test public void isLeapTest27() {
	    Year year = new Year(1600);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 46
	 * Purpose: test leap year - century start
	 * Priority: 1
	 */
	@Test public void isLeapTest28() {
	    Year year = new Year(2000);
	    assertTrue(year.isLeap());
	}

	/**
	 * @author: kavinyao
	 * @date: 2011-12-20T11:25:46.308000
	 * @version: 0.1
	 * @TCID: 47
	 * Purpose: test leap year - century start
	 * Priority: 1
	 */
	@Test public void isLeapTest29() {
	    Year year = new Year(4400);
	    assertTrue(year.isLeap());
	}


}
